<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body>

	<div class="layui-fluid mt2">
		<form class="layui-form" lay-filter="formTest">

			<input type="hidden" name="id" th:value="${jazSysBanner.id}">

			<div class="layui-form-item">
				<label class="layui-form-label">名称</label>
				<div class="layui-input-block">
					<input type="text" name="name" lay-verify="name" autocomplete="off" placeholder="请输入" class="layui-input" th:value="${jazSysBanner.name}">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">显示位置</label>
				<div class="layui-input-block">
					<input type="hidden" th:value="${jazSysBanner.position}" id="position">
					<select name="position">
						<option value=""></option>
						<option value="1">用户首页</option>
						<option value="2">个人中心</option>
						<option value="3">阿姨首页</option>
						<option value="4">阿姨个人中心</option>
					</select>
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">图片</label>
				<div class="layui-input-block">

					<div class="layui-upload-drag" id="drag">
						<i class="layui-icon"></i>
						<p>点击上传，或将文件拖拽到此处</p>

						<div id="uploadDemoView" >
							<hr>

							<div th:if="${ jazSysBanner.picture != '' }">
								<img th:src="${jazSysBanner.picture}" alt="上传成功后渲染" style="max-width: 196px">
							</div>

							<div th:if="${ jazSysBanner.picture == '' }">
								<img src="" alt="上传成功后渲染" style="max-width: 196px">
							</div>

						</div>

					</div>

					<input type="hidden" name="picture" lay-verify="picture" th:value="${jazSysBanner.picture}">

				</div>
			</div>

			<div class="layui-form-item  layui-flow-more">
				<div class="layui-inline">
					<button type="submit" class="layui-btn" lay-submit lay-filter="submit">立即提交</button>
				</div>
			</div>

		</form>
	</div>

	<div th:include="include::footer"></div>
	<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="/js/webJs/jzweb/jazSysBanner/edit.js">
	</script>
</body>
</html>
